package com.xnx3.wangmarket.plugin.innerAccount.controller.admin;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.xnx3.j2ee.service.SqlService;
import com.xnx3.wangmarket.plugin.base.controller.BasePluginController;

/**
 * 入口
 * @author 管雷鸣
 */
@Controller
@RequestMapping("/plugin/innerAccount/admin/")
public class InnerAccountPluginController extends BasePluginController {

	@Resource
	private SqlService sqlService;

	/**
	 * 入口页面
	 */
	@RequestMapping("index${url.suffix}")
	public String list(HttpServletRequest request, Model model){
		if(!haveSuperAdminAuth()){
			return error(model, "无权使用");
		}
		return "plugin/innerAccount/admin/index";
	}
	
	/**
	 * welcome欢迎页面
	 */
	@RequestMapping("welcome${url.suffix}")
	public String welcome(HttpServletRequest request, Model model){
		if(!haveSuperAdminAuth()){
			return error(model, "无权使用");
		}
		return "plugin/innerAccount/admin/welcome";
	}
}